﻿//-----------------------------------------------------------------------
// <copyright file="Copyright.cs" author="Michael Herndon">
//     Copyright (c) Michael Herndon.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace Amplify.Twitter
{
	using System;
	using System.Runtime.Serialization;
	using System.Xml.Serialization;

	/// <summary>
	/// The DTO of the response to see if two users are friends or not.
	/// </summary>
	[Serializable]
	[XmlRoot("friends")]
	public class ExistResponse : BooleanXmlResponse 
	{

		/// <summary>
		/// Gets or sets a value indicating whether this <see cref="ExistResponse"/> is friends.
		/// </summary>
		/// <value><c>true</c> if friends; otherwise, <c>false</c>.</value>
		[DataMember(Name="friends")]
		public bool Friends {
			get { return this.Response; }
			set { this.Response = value; }
		}

		/// <summary>
		/// Gets the name of the root.
		/// </summary>
		/// <value>The name of the root.</value>
		public override string RootName
		{
			get
			{
				return "friends";
			}
		}


	}
}
